package ar.uba.fi.algo3.algoTank.pantallas;

import java.awt.event.KeyEvent;

import ar.uba.fi.algo3.titiritero.KeyPressedObservador;

public class EscuchadorDeKeyPausa implements KeyPressedObservador {
	
	private MenuPausa menu;
	
	public EscuchadorDeKeyPausa(MenuPausa menu){
		this.menu = menu;
	}
	
	public void keyPressed(KeyEvent event) {
		
            switch (event.getKeyCode()) {
            case KeyEvent.VK_1:
            	menu.continuarJuego();
            	break;
            case KeyEvent.VK_2:
            	menu.guardarJuego();
            	break;
            case KeyEvent.VK_3:
            	menu.salirJuego();
            	break;
            default:
                    System.out.println("Tecla inutil: " + event.getKeyCode());
                    break;
            }
    
		
	}

}